Order Dependent Tests ^^^^^ **Definition:** * The tests have to be executed in a certain order due to dependencies between them. **Also Known As:** * Chained Tests, Chain Gang **Code Example:** .. code-block:: ruby class AnimalTest < Test::Unit::TestCase def test_create_record a = Animal.create!(name:"Lion") assert_not_nil a end def test_find_record a = Animal.find_by_name("Lion") assert_not_nil a end end **References:** .. admonition:: Quality attributes * :octicon:`file-code;1em` - Code Example * :octicon:`comment-discussion;1em` - Cause and Effect * :octicon:`graph;1em` - Frequency * :octicon:`sync;1em` - Refactoring * `A testing anti-pattern safari `_ :octicon:`file-code;1em` :octicon:`comment-discussion;1em` * `Categorising Test Smells `_ :octicon:`graph;1em` * `Smells of Testing (signs your tests are bad) `_ :octicon:`sync;1em`